from app import db

# 全站日统计
class StatDailySite(db.Model):
    __tablename__ = 'stat_daily_site'

    id = db.Column(db.Integer, primary_key=True)
    date = db.Column(db.Date, nullable=False, index=True)
    total_pay_money = db.Column(db.Numeric(10, 2), nullable=False, comment="当日应收总金额")
    total_member_count = db.Column(db.Integer, nullable=False,comment="会员总数")
    total_new_member_count = db.Column(db.Integer, nullable=False,comment="当日新增会员数")
    total_order_count = db.Column(db.Integer, nullable=False,comment="当日订单数")
    total_shared_count = db.Column(db.Integer, nullable=False,comment="当日分享数")
    updated_time = db.Column(db.DateTime, nullable=False)
    created_time = db.Column(db.DateTime, nullable=False)
